package com.cjm.one.model.goods.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum GoodsCategoryStatusEnum implements BaseEnum {
    @JsonEnumDefaultValue
    NORMAL(0, "正常"),
    DELETE(1, "删除");
    @EnumValue
    @JsonValue
    private int code;
    private String message;
    GoodsCategoryStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}